package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SuperGroupActivityMapper;
import com.ruoyi.system.domain.SuperGroupActivity;
import com.ruoyi.system.service.ISuperGroupActivityService;

/**
 * 拼团活动Service业务层处理
 * 
 * @author xjf
 * @date 2025-08-13
 */
@Service
public class SuperGroupActivityServiceImpl implements ISuperGroupActivityService 
{
    @Autowired
    private SuperGroupActivityMapper superGroupActivityMapper;

    /**
     * 查询拼团活动
     * 
     * @param id 拼团活动主键
     * @return 拼团活动
     */
    @Override
    public SuperGroupActivity selectSuperGroupActivityById(Long id)
    {
        return superGroupActivityMapper.selectSuperGroupActivityById(id);
    }

    /**
     * 查询拼团活动列表
     * 
     * @param superGroupActivity 拼团活动
     * @return 拼团活动
     */
    @Override
    public List<SuperGroupActivity> selectSuperGroupActivityList(SuperGroupActivity superGroupActivity)
    {
        return superGroupActivityMapper.selectSuperGroupActivityList(superGroupActivity);
    }

    /**
     * 新增拼团活动
     * 
     * @param superGroupActivity 拼团活动
     * @return 结果
     */
    @Override
    public int insertSuperGroupActivity(SuperGroupActivity superGroupActivity)
    {
        return superGroupActivityMapper.insertSuperGroupActivity(superGroupActivity);
    }

    /**
     * 修改拼团活动
     * 
     * @param superGroupActivity 拼团活动
     * @return 结果
     */
    @Override
    public int updateSuperGroupActivity(SuperGroupActivity superGroupActivity)
    {
        return superGroupActivityMapper.updateSuperGroupActivity(superGroupActivity);
    }

    /**
     * 批量删除拼团活动
     * 
     * @param ids 需要删除的拼团活动主键
     * @return 结果
     */
    @Override
    public int deleteSuperGroupActivityByIds(Long[] ids)
    {
        return superGroupActivityMapper.deleteSuperGroupActivityByIds(ids);
    }

    /**
     * 删除拼团活动信息
     * 
     * @param id 拼团活动主键
     * @return 结果
     */
    @Override
    public int deleteSuperGroupActivityById(Long id)
    {
        return superGroupActivityMapper.deleteSuperGroupActivityById(id);
    }
}
